package com.dc.designPattern._13_command.extend.extend2;

/**
 * Description: 命令模式_命令实现_删除页面命令
 * @author: gdc
 * @date: 2021/6/28
 * @version 1.0
 */
public class DeletePageCommand extends Command {

    public DeletePageCommand() {
        super(new PageGroup());
    }

    @Override
    public void execute() {
        super.getGroup().find();
        super.getGroup().delete();
        super.getGroup().plan();
    }
}
